-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dashboard] show fullscreen mode when url has fullScreenMode param #196275
[Dashboard] show fullscreen mode when url has fullScreenMode param #196275
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nreese I am defaulting to your opinion here :) I think that fullscreenMode
belongs under InitialComponentState
, but our current URL logic is tied to the old DashboardContainerInput
type. What is the best way to handle this, do you think? Should we just keep it under DashboardContainerInput
and you can address it in your refactor?
This involves a lot of parameters and attributes, so I can't give a precise answer. Maybe maintaining the status quo is a better choice. |
Putting |
How about just putting See it will look something like this
|
Thanks, I fixed it and can you take a look |
Pinging @elastic/kibana-presentation (Team:Presentation) |
buildkite test this |
@elasticmachine run buildkite/docs-build-pr |
@lsq645599166 Here's a screenshot of the type errors: |
Thanks and fixed |
buildkite test this |
@elasticmachine run buildkite/docs-build-pr |
@@ -123,13 +123,6 @@ export function InternalDashboardTopNav({ | |||
dashboardTitleRef.current?.focus(); | |||
}, [title, viewMode]); | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If keep this, the top nav will disappear and reappear like below
20241023-001416.mp4
And for embed
mode, this function will ensure it works fine
kibana/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx
Lines 111 to 134 in 3bd11ce
private initVisibility(application: StartDeps['application']) { | |
// Start off the chrome service hidden if "embed" is in the hash query string. | |
const isEmbedded = 'embed' in parse(location.hash.slice(1), true).query; | |
this.isForceHidden$ = new BehaviorSubject(isEmbedded); | |
const appHidden$ = merge( | |
// For the isVisible$ logic, having no mounted app is equivalent to having a hidden app | |
// in the sense that the chrome UI should not be displayed until a non-chromeless app is mounting or mounted | |
of(true), | |
application.currentAppId$.pipe( | |
mergeMap((appId) => | |
application.applications$.pipe( | |
map((applications) => { | |
return !!appId && applications.has(appId) && !!applications.get(appId)!.chromeless; | |
}) | |
) | |
) | |
) | |
); | |
this.isVisible$ = combineLatest([appHidden$, this.isForceHidden$]).pipe( | |
map(([appHidden, forceHidden]) => !appHidden && !forceHidden), | |
takeUntil(this.stop$) | |
); | |
} |
If there is a better way, I will fix it.
buildkite test this |
@elasticmachine run buildkite/docs-build-pr |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM - code review + local testing. Thanks so much for tackling this 🙇
Starting backport for target branches: 8.15, 8.16, 8.x https://github.com/elastic/kibana/actions/runs/11507245328 |
…lastic#196275) ## Summary Closes elastic#174561 Show fullscreen mode when url has fullScreenMode param `&_a=(fullScreenMode:!t)` ### Screenshot ![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com> (cherry picked from commit 72c0b81)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11507553634 |
…lastic#196275) ## Summary Closes elastic#174561 Show fullscreen mode when url has fullScreenMode param `&_a=(fullScreenMode:!t)` ### Screenshot ![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com> (cherry picked from commit 72c0b81)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…aram (#196275) (#197728) # Backport This will backport the following commits from `main` to `8.16`: - [[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)](#196275) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Henry Liu","email":"645599166@qq.com"},"sourceCommit":{"committedDate":"2024-10-24T20:49:39Z","message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:medium","💝community","v9.0.0","backport:prev-major"],"title":"[Dashboard] show fullscreen mode when url has fullScreenMode param","number":196275,"url":"https://github.com/elastic/kibana/pull/196275","mergeCommit":{"message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196275","number":196275,"mergeCommit":{"message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa"}}]}] BACKPORT--> Co-authored-by: Henry Liu <645599166@qq.com>
…ram (#196275) (#197729) # Backport This will backport the following commits from `main` to `8.x`: - [[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)](#196275) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Henry Liu","email":"645599166@qq.com"},"sourceCommit":{"committedDate":"2024-10-24T20:49:39Z","message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:medium","💝community","v9.0.0","backport:prev-major"],"title":"[Dashboard] show fullscreen mode when url has fullScreenMode param","number":196275,"url":"https://github.com/elastic/kibana/pull/196275","mergeCommit":{"message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196275","number":196275,"mergeCommit":{"message":"[Dashboard] show fullscreen mode when url has fullScreenMode param (#196275)\n\n## Summary\r\n\r\nCloses #174561\r\n\r\nShow fullscreen mode when url has fullScreenMode param\r\n`&_a=(fullScreenMode:!t)`\r\n\r\n### Screenshot\r\n\r\n\r\n![20241015-184503](https://github.com/user-attachments/assets/fae01dcc-f081-4314-84f9-3923adc76e5b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"72c0b81994d28f3983c2d21d662bd025653054fa"}}]}] BACKPORT--> Co-authored-by: Henry Liu <645599166@qq.com>
Summary
Closes #174561
Show fullscreen mode when url has fullScreenMode param
&_a=(fullScreenMode:!t)
Screenshot